#include "first.h"
#include "second.h"

#include <iostream>

int main () {
	CFirst fir;	// can not instantiate the abc
	return 0;
}

/*
 *	output
 *
[sgupta@rhel6x86 abstract_base_class]$ make clean;make
rm -rf *.o test
g++ -g -O0 -D_THREAD_SAFE -Wextra -pedantic -Wall -c -fPIC -Wno-deprecated  main.cpp
main.cpp: In function ‘int main()’:
main.cpp:7: error: cannot declare variable ‘fir’ to be of abstract type ‘CFirst’
first.h:4: note:   because the following virtual functions are pure within ‘CFirst’:
first.h:9: note: 	virtual void CFirst::test()
make: *** [main.o] Error 1
[sgupta@rhel6x86 abstract_base_class]$
 */
